package com.xuyiwei.mayi.listen;

import com.xuyiwei.mayi.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by xuyiwei on 2019/4/20.
 */
@Service
public class RedisReceiver {
    @Autowired
    RedisService redisService;

    public void receiveMessage(String message) {
        //这里是收到通道的消息之后执行的方法
        System.out.println("redis收到消息:"+message);
    }
}